package com.zelix;

import java.awt.event.*;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;

class go
        implements MouseListener, ListSelectionListener, KeyListener {

    private final q2 a;

    go(q2 q2_1) {
        a = q2_1;
    }

    public void keyPressed(KeyEvent keyevent) {
        if (keyevent.getKeyCode() == 10 || keyevent.getKeyCode() == 127) {
            a.t();
            a.d(false);
        }
    }

    public void keyReleased(KeyEvent keyevent) {
    }

    public void keyTyped(KeyEvent keyevent) {
    }

    public void mouseClicked(MouseEvent mouseevent) {
        if (mouseevent.getClickCount() == 2) {
            a.t();
            a.d(false);
        }
    }

    public void mouseEntered(MouseEvent mouseevent) {
    }

    public void mouseExited(MouseEvent mouseevent) {
    }

    public void mousePressed(MouseEvent mouseevent) {
    }

    public void mouseReleased(MouseEvent mouseevent) {
    }

    public void valueChanged(ListSelectionEvent listselectionevent) {
        if (a.o() == 0) {
            a.d(false);
        } else
            a.d(true);
    }
}